#include "include/constantes.h"
#ifdef WIN32
#include <windows.h>
#endif

#include "include/CSDLManager.h"
#include "include/CLevelRenderer.h"
#include "include/CMenuRenderer.h"

#if defined( _DEBUG ) || !defined( WIN32 )
int main (int argc, char **argv)
#else
int WINAPI WinMain(	HINSTANCE	_hInstance,
					HINSTANCE	_hPrevInstance,
					LPSTR		_lpCmdLine,
					int			_nCmdShow )
#endif
{
	CSDLManager * SDLManager = CSDLManager::GetInstancePtr();
    CLevelRenderer * LevelRenderer = CLevelRenderer::GetInstancePtr();
	CMenuRenderer * MenuRenderer = CMenuRenderer::GetInstancePtr();

	SDLManager->Init();
	LevelRenderer->Init();
	MenuRenderer->Init();

    MenuRenderer->StartMenu();

	MenuRenderer->DeInit();
	LevelRenderer->DeInit();
	SDLManager->DeInit();

	CSDLManager::DestroyInstance();
	CLevelRenderer::DestroyInstance();
	CMenuRenderer::DestroyInstance();

	return EXIT_SUCCESS;
}
